import supplierApi from './system/supplierApi.js'

export default app => {
  // system
  supplierApi(app)
  // 错误处理
  app.use(async (err, req, res, next) => {
      res.status(err.statusCode || 500).send({
          message: err.message,
          code: err.statusCode || 500
      })
  })

}
